package com.fudan.cfg.dataset;

import java.util.Map;

import com.fudan.cfg.base.DatasetDef;
import com.fudan.run.ctx.annotation.DatasetAdapter;

@DatasetAdapter("csv")
public class CSVFileDataset extends DatasetDef {
	public CSVFileDataset(String name, String type) {
		super(name, type);
	}

	private String path;

	@Override
	public DatasetDef build(Map<String, Object> configuration) {
		this.setPath((String) configuration.get("path"));
		return this;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}
}
